#pragma once

#include <typedef.h>
//
#include <semaphore.hpp>
#include <task_run.hpp>

class WifiTextLog : public TaskRun
{
public:
	WifiTextLog();
	virtual ~WifiTextLog();
	static WifiTextLog* Instance(void);

	virtual void Start(void* arg = nullptr);
	void SendTextLine(std::string line);

private:
	virtual void Run(void* arg);

private:
	std::string m_Ip;
	int m_Port;
	Semaphore m_SemRW;
	Semaphore m_SemSig;
	std::list<std::string> m_DataList;
};
